package com.github.shiqiyue.learn.guava;

import com.google.common.base.Splitter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/***
 * Spliter 测试
 * @author wenyao.wu
 * @date 2018/7/3
 */
public class SpliterTest {

    private static final Logger logger = LoggerFactory.getLogger(SpliterTest.class);

    public static void main(String[] args) {
        logger.info("{}", Splitter.on(',')
                .trimResults()
                .omitEmptyStrings()
                .split("the ,quick, , brown         , fox,  ,,            jumps, over, the, lazy, little dog."));
    }

}
